package name.sraynal.msgdispatcher.event;


public class Event {
	
	/**
	 * Event types.
	 */
	public static final String START_APP = "start application";
	public static final String END_APP = "end application";
	public static final String TEXT_WRITTEN = "text written";
	public static final String FILE_CHOSEN = "file has been chosen";
	public static final String UNCONSISTANT_TEXT = "unconstitant text";
	public static final String SECOND_FILE_DEST = "other destination file required";
	public static final String BACK_TO_BEGINNING = "go back to the beginning";
	
	/**
	 * Allowed events types.
	 */
	private static final String[] eventsTypesArray = {Event.START_APP, Event.END_APP,
												Event.TEXT_WRITTEN, Event.FILE_CHOSEN, Event.UNCONSISTANT_TEXT,
												Event.SECOND_FILE_DEST};
	
	/**
	 * Event type.
	 */
	private String type;
	
	public Event(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}
}